Readme Replication Files for Paper "Intra-Ethnic Divisions and Disagreement over Self-Determination Demands in Ethnic Movements"

The folder contains all files to replicate the analyses in the paper. The datasets are in the data folder as well as the *updated EPR-O data* in raw format (epro_t.csv). The analysis files should generate all tables and figures in the paper. For the main results these are the necessary files:
01_make_directories.R (this file creates the necessary directories)
crosssection_linear.R
panel_linear_probability.R
panel_logistic.R
panel_linear_probability_only_variation.R
The codebook can be found in the file "EPR Org_codebook.pdf".
For further information contact Frederik Gremler (frederik.gremler [at] gmail.com).

## R Session Info
R version 4.2.1 (2022-06-23 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22631)
Matrix products: default
locale:
[1] LC_COLLATE=German_Germany.utf8  LC_CTYPE=German_Germany.utf8    LC_MONETARY=German_Germany.utf8 LC_NUMERIC=C                    LC_TIME=German_Germany.utf8    
attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     
other attached packages:
[1] ggplot2_3.3.6       patchwork_1.1.2     dplyr_1.0.9         texreg_1.38.6       broom.mixed_0.2.9.4 readr_2.1.2         fixest_0.11.1       specr_1.0.0        
loaded via a namespace (and not attached):
 [1] zoo_1.8-10             tidyselect_1.1.2       purrr_0.3.4            listenv_0.8.0          splines_4.2.1          lattice_0.20-45        colorspace_2.0-3      
 [8] vctrs_0.5.1            generics_0.1.3         marginaleffects_0.11.1 utf8_1.2.3             rlang_1.0.6            pillar_1.9.0           nloptr_2.0.3          
[15] withr_2.5.0            glue_1.6.2             DBI_1.1.3              lifecycle_1.0.3        stringr_1.5.0          munsell_0.5.0          gtable_0.3.0          
[22] future_1.26.1          codetools_0.2-18       forcats_0.5.1          tzdb_0.3.0             parallel_4.2.1         fansi_1.0.4            broom_1.0.0           
[29] furrr_0.3.0            Rcpp_1.0.10            backports_1.4.1        scales_1.2.0           parallelly_1.32.0      lme4_1.1-30            hms_1.1.1             
[36] digest_0.6.29          stringi_1.7.8          numDeriv_2016.8-1.1    cowplot_1.1.1          grid_4.2.1             cli_3.3.0              tools_4.2.1           
[43] sandwich_3.0-2         magrittr_2.0.3         tibble_3.2.1           Formula_1.2-4          tidyr_1.2.0            pkgconfig_2.0.3        ellipsis_0.3.2        
[50] MASS_7.3-57            Matrix_1.4-1           dreamerr_1.2.3         data.table_1.14.2      assertthat_0.2.1       minqa_1.2.4            httr_1.4.3            
[57] rstudioapi_0.13        R6_2.5.1               globals_0.15.1         boot_1.3-28            igraph_1.3.5           nlme_3.1-157           compiler_4.2.